package me.feng.entity

import java.io.Serializable
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty

case class Event(u: User, eid: String, event: EventType.Value)

object EventType extends Enumeration {

  type EventType = Value
  val LOGIN = Value(0)
  val CLOSE = Value(1)
  val EXIT_SESSION = Value(2)
  val NEW_SESSION = Value(3)
  val REFRESH_ONLINE_USERS = Value(4)
  val LOGIN_SUCCESS = Value(5)
  val LOGIN_FAIL = Value(6)
  val FRIEND_ADD = Value(7)
  val FRIEND_ADD_SUCCESS = Value(8)
  val REFRESH_FRIENDS = Value(9)
}

